package it.anddev.ttapp;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class TranslateTeamApp extends TabActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Resources res = getResources();
        
        TabHost tabHost = getTabHost();
        TabHost.TabSpec tabSpec;
        Intent intent_info, intent_team;
        
        intent_info = new Intent().setClass(this, Info.class);
        tabSpec = tabHost.newTabSpec("info")
        .setIndicator(getString(R.string.info), res.getDrawable(R.drawable.info))
        .setContent(intent_info);
        
        tabHost.addTab(tabSpec);

        intent_team = new Intent().setClass(this, Team.class); 
        tabSpec = tabHost.newTabSpec("team")
        .setIndicator(getString(R.string.team), res.getDrawable(R.drawable.team))
        .setContent(intent_team);
        
        tabHost.addTab(tabSpec);

        tabHost.setCurrentTab(0);
    }   
    
    
}